package com.dhcc.bpm.business.papc.service;

import com.dhcc.bpm.business.papc.entity.ErrcodeMap;
import com.dhcc.bpm.business.papc.vo.ErrcodeMapVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * 错误码映射表  服务类
 *
 * @author liuzhao
 * @since 2020-05-16
 */
public interface IErrcodeMapService extends BaseService<ErrcodeMap> {

    /**
     * @param page
     * @param errcodeMap
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.business.papc.vo.ErrcodeMapVO>
     * @Description 自定义分页
     * @Author liuzhao
     * @Date 2020/5/21 16:30
     **/
    IPage<ErrcodeMapVO> selectErrcodeMapPage(IPage<ErrcodeMapVO> page, ErrcodeMapVO errcodeMap);

    /**
     * @param id
     * @return com.dhcc.bpm.business.papc.entity.ErrcodeMap
     * @Description 详情
     * @Author liuzhao
     * @Date 2020/5/21 16:30
     **/
    ErrcodeMap selectErrcodeMapById(Long id);

    /**
     * @param errcodeMap
     * @return boolean
     * @Description 新增或修改
     * @Author liuzhao
     * @Date 2020/5/21 16:31
     **/
    @Override
    boolean saveOrUpdate(ErrcodeMap errcodeMap);

    /**
     * @param ids
     * @return boolean
     * @Description 删除
     * @Author liuzhao
     * @Date 2020/5/21 16:32
     **/
    boolean deleteErrcodeMapByIds(String ids);

    /**
     * @param errcodeMap
     * @return java.util.List<com.dhcc.bpm.business.papc.entity.ErrcodeMap>
     * @Description 查询全部信息
     * @Author liuzhao
     * @Date 2020/5/21 16:32
     **/
    List<ErrcodeMap> selectErrcodeMapAll(ErrcodeMap errcodeMap);
}
